package com.hk.web.domain.entity;

import com.hk.commons.domain.entity.IdEntity;
import com.hk.commons.enums.FeatureToggleType;
import com.hk.commons.enums.Whether;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

/**
 *
 * @author Antinomy
 * @date 17/11/1
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
public class MerchantFeatureToggle extends IdEntity {

    @Column(columnDefinition = "varchar(50) comment '特性名字'")
    private FeatureToggleType feature;

    @Column(columnDefinition = "varchar(10) NOT NULL comment '是否启用'")
    @Enumerated(EnumType.STRING)
    private Whether enable = Whether.NO;

    public FeatureToggleType getFeature() {
        return feature;
    }

    public void setFeature(FeatureToggleType feature) {
        this.feature = feature;
    }

    public Whether getEnable() {
        return enable;
    }

    public void setEnable(Whether enable) {
        this.enable = enable;
    }
}
